package com.hxzy.shop.dto.convert;

import com.hxzy.shop.dto.req.ExpressFreightRuleReq;
import com.hxzy.shop.dto.req.SameCityFreightAddReq;
import com.hxzy.shop.dto.resp.ExpressFreightDetailsResp;
import com.hxzy.shop.dto.resp.ExpressFreightRuleResp;
import com.hxzy.shop.entity.ExpressFreight;
import com.hxzy.shop.entity.ExpressFreightInnerRule;
import com.hxzy.shop.entity.SameCityFreight;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @Author ht
 * @Date 2021/7/12 11:55
 * @Version 1.0
 */
@Mapper
public abstract class FreightConvert {
    public static FreightConvert INSTANCE = Mappers.getMapper(FreightConvert.class);
    public abstract ExpressFreightRuleResp rule2Resp(ExpressFreightInnerRule expressFreightInnerRule);
    public abstract ExpressFreightDetailsResp expressFreight2DetailResp(ExpressFreight expressFreight);
    public abstract ExpressFreightInnerRule req2Rule(ExpressFreightRuleReq req);
    public abstract SameCityFreight addReq2SameCityFreight(SameCityFreightAddReq req);
}
